package component.fulltextsearch.index;

import java.io.IOException;
import java.util.Date;

import org.apache.lucene.queryParser.ParseException;

import component.fulltextsearch.util.Page;

/**
 * 搜索接口
 *
 */
public interface IDocumentSearch {
	/**
	 * 根据用户 角色 查询分页数据
	 * @param query
	 * @param users
	 * @param roles
	 * @param pageNum
	 * @param pageSize
	 * @return
	 * @throws IOException 
	 * @throws ParseException 
	 */
	public Page queryPageData(String queryExpression, Date startDate,Date endDate, String field, String[] userArray, String[] roleArray, String[] sortFileds, int pageNo, int pageSize) throws IOException, ParseException;
	
}